<!DOCTYPE html>
<html lang="en" ng-app="app">
<head>
	<meta charset="UTF-8">
	<title>$location和$anchorScroll</title>
	<script type="text/javascript" src="../js/angular.js" ></script>
	<script type="text/javascript" src="location.js" ></script>
	<link rel="stylesheet" type="text/css" href="location.css">
</head>
<body>
	<div ng-controller="controller1"></div>
	<div ng-controller="controller2">
		<ul class="ul">
			<li class="list" ng-repeat="id in [1,2,3,4,5]" ng-click="change('div'+id);">第{{id}}个</li>
		</ul>
		<div ng-repeat="id in [1,2,3,4,5]"  ng-attr-id="div{{id}}" class="miaodian">
			$anchorScroll,$location,描点跳转{{id}}
		</div>
	</div>
</body>
</html>